package structural.decorator;

/**
 * @Description: 笔套检查适配器
 * @Author: lxt
 * @CreateDate: 2019/11/1
 **/
public class WrapperCheckDecorator extends WrapperDecorator {

    public WrapperCheckDecorator(AbstractWrapper wrapper) {
        this.setWrapper(wrapper);
    }

    public void write() {
        System.out.println("正在检测笔套是否正常");
        this.getWrapper().write();
    }
}
